package view;

import com.example.doan.R;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.LinearLayout;

public class MainHomeActivity extends Activity implements OnClickListener {
	LinearLayout ln1;
	LinearLayout ln2;
	LinearLayout ln3;
	LinearLayout ln4;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_main);
		khoitao();
	}

	public void khoitao() {
		ln1 = (LinearLayout) findViewById(R.id.linearLayout2);
		ln1.setOnClickListener(this);
		ln2 = (LinearLayout) findViewById(R.id.linearLayout3);
		ln2.setOnClickListener(this);
		ln3 = (LinearLayout) findViewById(R.id.linearLayout4);
		ln3.setOnClickListener(this);
		ln4 = (LinearLayout) findViewById(R.id.linearLayout5);
		ln4.setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.linearLayout2:

			break;
		case R.id.linearLayout3:

			break;

		case R.id.linearLayout4:

			break;

		case R.id.linearLayout5:

			break;

		default:
			break;
		}
	}

}
